<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-cpp">#if __GLASGOW_HASKELL__ &gt;= 709
</span><span class="hs-pragma">{-# LANGUAGE Safe #-}</span><span class="hs-cpp">
#else
</span><span class="hs-pragma">{-# LANGUAGE Trustworthy #-}</span><span class="hs-cpp">
#endif
</span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-7"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-8"></span><span class="hs-comment">-- Module      :  Graphics.Win32.GDI.Path</span><span>
</span><span id="line-9"></span><span class="hs-comment">-- Copyright   :  (c) Alastair Reid, 1997-2003</span><span>
</span><span id="line-10"></span><span class="hs-comment">-- License     :  BSD-style (see the file libraries/base/LICENSE)</span><span>
</span><span id="line-11"></span><span class="hs-comment">--</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- Maintainer  :  Esa Ilari Vuokko &lt;ei@vuokko.info&gt;</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- Stability   :  provisional</span><span>
</span><span id="line-14"></span><span class="hs-comment">-- Portability :  portable</span><span>
</span><span id="line-15"></span><span class="hs-comment">--</span><span>
</span><span id="line-16"></span><span class="hs-comment">-- A collection of FFI declarations for interfacing with Win32.</span><span>
</span><span id="line-17"></span><span class="hs-comment">--</span><span>
</span><span id="line-18"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Graphics.Win32.GDI.Path</span><span>
</span><span id="line-21"></span><span>        </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#beginPath"><span class="hs-identifier">beginPath</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#closeFigure"><span class="hs-identifier">closeFigure</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#endPath"><span class="hs-identifier">endPath</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#fillPath"><span class="hs-identifier">fillPath</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#flattenPath"><span class="hs-identifier">flattenPath</span></a></span><span>
</span><span id="line-22"></span><span>        </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#pathToRegion"><span class="hs-identifier">pathToRegion</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#strokeAndFillPath"><span class="hs-identifier">strokeAndFillPath</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#strokePath"><span class="hs-identifier">strokePath</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#widenPath"><span class="hs-identifier">widenPath</span></a></span><span>
</span><span id="line-23"></span><span>        </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-24"></span><span>
</span><span id="line-25"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html"><span class="hs-identifier">Graphics.Win32.GDI.Types</span></a></span><span>
</span><span id="line-26"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="System.Win32.Types.html"><span class="hs-identifier">System.Win32.Types</span></a></span><span class="hs-cpp">

#include &quot;windows_cconv.h&quot;
</span><span>
</span><span id="line-30"></span><span class="hs-comment">----------------------------------------------------------------</span><span>
</span><span id="line-31"></span><span class="hs-comment">-- Paths</span><span>
</span><span id="line-32"></span><span class="hs-comment">----------------------------------------------------------------</span><span>
</span><span id="line-33"></span><span>
</span><span id="line-34"></span><span class="hs-comment">-- AbortPath       :: HDC -&gt; IO ()</span><span>
</span><span id="line-35"></span><span>
</span><span id="line-36"></span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#beginPath"><span class="hs-identifier hs-type">beginPath</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-37"></span><span id="beginPath"><span class="annot"><span class="annottext">beginPath :: HDC -&gt; IO ()
</span><a href="Graphics.Win32.GDI.Path.html#beginPath"><span class="hs-identifier hs-var hs-var">beginPath</span></a></span></span><span> </span><span id="local-6989586621679109434"><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109434"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-38"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; IO Bool -&gt; IO ()
</span><a href="System.Win32.Types.html#failIfFalse_"><span class="hs-identifier hs-var">failIfFalse_</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;BeginPath&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO Bool -&gt; IO ()) -&gt; IO Bool -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">HDC -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Path.html#c_BeginPath"><span class="hs-identifier hs-var">c_BeginPath</span></a></span><span> </span><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109434"><span class="hs-identifier hs-var">dc</span></a></span><span>
</span><span id="line-39"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h BeginPath&quot;</span><span>
</span><span id="line-40"></span><span>  </span><span id="c_BeginPath"><span class="annot"><a href="Graphics.Win32.GDI.Path.html#c_BeginPath"><span class="hs-identifier hs-var">c_BeginPath</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-41"></span><span>
</span><span id="line-42"></span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#closeFigure"><span class="hs-identifier hs-type">closeFigure</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-43"></span><span id="closeFigure"><span class="annot"><span class="annottext">closeFigure :: HDC -&gt; IO ()
</span><a href="Graphics.Win32.GDI.Path.html#closeFigure"><span class="hs-identifier hs-var hs-var">closeFigure</span></a></span></span><span> </span><span id="local-6989586621679109431"><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109431"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-44"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; IO Bool -&gt; IO ()
</span><a href="System.Win32.Types.html#failIfFalse_"><span class="hs-identifier hs-var">failIfFalse_</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CloseFigure&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO Bool -&gt; IO ()) -&gt; IO Bool -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">HDC -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Path.html#c_CloseFigure"><span class="hs-identifier hs-var">c_CloseFigure</span></a></span><span> </span><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109431"><span class="hs-identifier hs-var">dc</span></a></span><span>
</span><span id="line-45"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h CloseFigure&quot;</span><span>
</span><span id="line-46"></span><span>  </span><span id="c_CloseFigure"><span class="annot"><a href="Graphics.Win32.GDI.Path.html#c_CloseFigure"><span class="hs-identifier hs-var">c_CloseFigure</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-47"></span><span>
</span><span id="line-48"></span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#endPath"><span class="hs-identifier hs-type">endPath</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-49"></span><span id="endPath"><span class="annot"><span class="annottext">endPath :: HDC -&gt; IO ()
</span><a href="Graphics.Win32.GDI.Path.html#endPath"><span class="hs-identifier hs-var hs-var">endPath</span></a></span></span><span> </span><span id="local-6989586621679109429"><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109429"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-50"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; IO Bool -&gt; IO ()
</span><a href="System.Win32.Types.html#failIfFalse_"><span class="hs-identifier hs-var">failIfFalse_</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;EndPath&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO Bool -&gt; IO ()) -&gt; IO Bool -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">HDC -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Path.html#c_EndPath"><span class="hs-identifier hs-var">c_EndPath</span></a></span><span> </span><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109429"><span class="hs-identifier hs-var">dc</span></a></span><span>
</span><span id="line-51"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h EndPath&quot;</span><span>
</span><span id="line-52"></span><span>  </span><span id="c_EndPath"><span class="annot"><a href="Graphics.Win32.GDI.Path.html#c_EndPath"><span class="hs-identifier hs-var">c_EndPath</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-53"></span><span>
</span><span id="line-54"></span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#fillPath"><span class="hs-identifier hs-type">fillPath</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-55"></span><span id="fillPath"><span class="annot"><span class="annottext">fillPath :: HDC -&gt; IO ()
</span><a href="Graphics.Win32.GDI.Path.html#fillPath"><span class="hs-identifier hs-var hs-var">fillPath</span></a></span></span><span> </span><span id="local-6989586621679109427"><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109427"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-56"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; IO Bool -&gt; IO ()
</span><a href="System.Win32.Types.html#failIfFalse_"><span class="hs-identifier hs-var">failIfFalse_</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;FillPath&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO Bool -&gt; IO ()) -&gt; IO Bool -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">HDC -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Path.html#c_FillPath"><span class="hs-identifier hs-var">c_FillPath</span></a></span><span> </span><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109427"><span class="hs-identifier hs-var">dc</span></a></span><span>
</span><span id="line-57"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h FillPath&quot;</span><span>
</span><span id="line-58"></span><span>  </span><span id="c_FillPath"><span class="annot"><a href="Graphics.Win32.GDI.Path.html#c_FillPath"><span class="hs-identifier hs-var">c_FillPath</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-59"></span><span>
</span><span id="line-60"></span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#flattenPath"><span class="hs-identifier hs-type">flattenPath</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-61"></span><span id="flattenPath"><span class="annot"><span class="annottext">flattenPath :: HDC -&gt; IO ()
</span><a href="Graphics.Win32.GDI.Path.html#flattenPath"><span class="hs-identifier hs-var hs-var">flattenPath</span></a></span></span><span> </span><span id="local-6989586621679109425"><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109425"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-62"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; IO Bool -&gt; IO ()
</span><a href="System.Win32.Types.html#failIfFalse_"><span class="hs-identifier hs-var">failIfFalse_</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;FlattenPath&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO Bool -&gt; IO ()) -&gt; IO Bool -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">HDC -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Path.html#c_FlattenPath"><span class="hs-identifier hs-var">c_FlattenPath</span></a></span><span> </span><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109425"><span class="hs-identifier hs-var">dc</span></a></span><span>
</span><span id="line-63"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h FlattenPath&quot;</span><span>
</span><span id="line-64"></span><span>  </span><span id="c_FlattenPath"><span class="annot"><a href="Graphics.Win32.GDI.Path.html#c_FlattenPath"><span class="hs-identifier hs-var">c_FlattenPath</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-65"></span><span>
</span><span id="line-66"></span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#pathToRegion"><span class="hs-identifier hs-type">pathToRegion</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HRGN"><span class="hs-identifier hs-type">HRGN</span></a></span><span>
</span><span id="line-67"></span><span id="pathToRegion"><span class="annot"><span class="annottext">pathToRegion :: HDC -&gt; IO HRGN
</span><a href="Graphics.Win32.GDI.Path.html#pathToRegion"><span class="hs-identifier hs-var hs-var">pathToRegion</span></a></span></span><span> </span><span id="local-6989586621679109423"><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109423"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-68"></span><span>  </span><span id="local-6989586621679109422"><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109422"><span class="hs-identifier hs-var">ptr</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">String -&gt; IO HDC -&gt; IO HDC
forall a. String -&gt; IO (Ptr a) -&gt; IO (Ptr a)
</span><a href="System.Win32.Types.html#failIfNull"><span class="hs-identifier hs-var">failIfNull</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;PathToRegion&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO HDC -&gt; IO HDC) -&gt; IO HDC -&gt; IO HDC
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">HDC -&gt; IO HDC
</span><a href="Graphics.Win32.GDI.Path.html#c_PathToRegion"><span class="hs-identifier hs-var">c_PathToRegion</span></a></span><span> </span><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109423"><span class="hs-identifier hs-var">dc</span></a></span><span>
</span><span id="line-69"></span><span>  </span><span class="annot"><span class="annottext">HDC -&gt; IO HRGN
</span><a href="System.Win32.Types.html#newForeignHANDLE"><span class="hs-identifier hs-var">newForeignHANDLE</span></a></span><span> </span><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109422"><span class="hs-identifier hs-var">ptr</span></a></span><span>
</span><span id="line-70"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h PathToRegion&quot;</span><span>
</span><span id="line-71"></span><span>  </span><span id="c_PathToRegion"><span class="annot"><a href="Graphics.Win32.GDI.Path.html#c_PathToRegion"><span class="hs-identifier hs-var">c_PathToRegion</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#PRGN"><span class="hs-identifier hs-type">PRGN</span></a></span><span>
</span><span id="line-72"></span><span>
</span><span id="line-73"></span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#strokeAndFillPath"><span class="hs-identifier hs-type">strokeAndFillPath</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-74"></span><span id="strokeAndFillPath"><span class="annot"><span class="annottext">strokeAndFillPath :: HDC -&gt; IO ()
</span><a href="Graphics.Win32.GDI.Path.html#strokeAndFillPath"><span class="hs-identifier hs-var hs-var">strokeAndFillPath</span></a></span></span><span> </span><span id="local-6989586621679109417"><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109417"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-75"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; IO Bool -&gt; IO ()
</span><a href="System.Win32.Types.html#failIfFalse_"><span class="hs-identifier hs-var">failIfFalse_</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;StrokeAndFillPath&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO Bool -&gt; IO ()) -&gt; IO Bool -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">HDC -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Path.html#c_StrokeAndFillPath"><span class="hs-identifier hs-var">c_StrokeAndFillPath</span></a></span><span> </span><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109417"><span class="hs-identifier hs-var">dc</span></a></span><span>
</span><span id="line-76"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h StrokeAndFillPath&quot;</span><span>
</span><span id="line-77"></span><span>  </span><span id="c_StrokeAndFillPath"><span class="annot"><a href="Graphics.Win32.GDI.Path.html#c_StrokeAndFillPath"><span class="hs-identifier hs-var">c_StrokeAndFillPath</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-78"></span><span>
</span><span id="line-79"></span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#strokePath"><span class="hs-identifier hs-type">strokePath</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-80"></span><span id="strokePath"><span class="annot"><span class="annottext">strokePath :: HDC -&gt; IO ()
</span><a href="Graphics.Win32.GDI.Path.html#strokePath"><span class="hs-identifier hs-var hs-var">strokePath</span></a></span></span><span> </span><span id="local-6989586621679109415"><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109415"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-81"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; IO Bool -&gt; IO ()
</span><a href="System.Win32.Types.html#failIfFalse_"><span class="hs-identifier hs-var">failIfFalse_</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;StrokePath&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO Bool -&gt; IO ()) -&gt; IO Bool -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">HDC -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Path.html#c_StrokePath"><span class="hs-identifier hs-var">c_StrokePath</span></a></span><span> </span><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109415"><span class="hs-identifier hs-var">dc</span></a></span><span>
</span><span id="line-82"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h StrokePath&quot;</span><span>
</span><span id="line-83"></span><span>  </span><span id="c_StrokePath"><span class="annot"><a href="Graphics.Win32.GDI.Path.html#c_StrokePath"><span class="hs-identifier hs-var">c_StrokePath</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-84"></span><span>
</span><span id="line-85"></span><span class="annot"><a href="Graphics.Win32.GDI.Path.html#widenPath"><span class="hs-identifier hs-type">widenPath</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-86"></span><span id="widenPath"><span class="annot"><span class="annottext">widenPath :: HDC -&gt; IO ()
</span><a href="Graphics.Win32.GDI.Path.html#widenPath"><span class="hs-identifier hs-var hs-var">widenPath</span></a></span></span><span> </span><span id="local-6989586621679109413"><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109413"><span class="hs-identifier hs-var">dc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-87"></span><span>  </span><span class="annot"><span class="annottext">String -&gt; IO Bool -&gt; IO ()
</span><a href="System.Win32.Types.html#failIfFalse_"><span class="hs-identifier hs-var">failIfFalse_</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;WidenPath&quot;</span></span><span> </span><span class="annot"><span class="annottext">(IO Bool -&gt; IO ()) -&gt; IO Bool -&gt; IO ()
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">HDC -&gt; IO Bool
</span><a href="Graphics.Win32.GDI.Path.html#c_WidenPath"><span class="hs-identifier hs-var">c_WidenPath</span></a></span><span> </span><span class="annot"><span class="annottext">HDC
</span><a href="#local-6989586621679109413"><span class="hs-identifier hs-var">dc</span></a></span><span>
</span><span id="line-88"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h WidenPath&quot;</span><span>
</span><span id="line-89"></span><span>  </span><span id="c_WidenPath"><span class="annot"><a href="Graphics.Win32.GDI.Path.html#c_WidenPath"><span class="hs-identifier hs-var">c_WidenPath</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Graphics.Win32.GDI.Types.html#HDC"><span class="hs-identifier hs-type">HDC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">IO</span></span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-90"></span><span>
</span><span id="line-91"></span><span class="hs-comment">----------------------------------------------------------------</span><span>
</span><span id="line-92"></span><span class="hs-comment">-- End</span><span>
</span><span id="line-93"></span><span class="hs-comment">----------------------------------------------------------------</span><span>
</span><span id="line-94"></span></pre></body></html>